import request from 'utils/request.js'

/**
 * 登录
 * @param {*} data {mobile code agree}
 */
export const login = (data) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data,
  })
}

/**
 * 获取用户个人资料
 */
export const getUserInfo = () => {
  return request({
    url: '/v1_0/user/profile',
  })
}
